package com.itcast.springboot.waste_recovery.common;

/**
 * @Author 郭泽鹏
 * @Date 2020/8/23 14:59
 * @Version 1.0
 * @Description 状态码
 */
public enum CommonResultCode {
    CommonSuccess(200,"操作成功！"),
    CommonAuthed(201,"已经实名认证过"),
    CommonFail(210,"操作失败"),
    CommonUnlogin(220,"未登录"),
    CommonUnauth(230,"未授权"),
    CommonLoginFail(240,"用户名或密码错误");


    //操作代码
    int code;
    //提示信息
    String msg;

    CommonResultCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
